3.1.21 \(\int \frac {(a+b x^2)^2 (A+B x^2)}{x^8} \, dx\) [21]

Optimal. Leaf size=53 \[ -\frac {a^2 A}{7 x^7}-\frac {a (2 A b+a B)}{5 x^5}-\frac {b (A b+2 a B)}{3 x^3}-\frac {b^2 B}{x} \]

[Out]

-1/7*a^2*A/x^7-1/5*a*(2*A*b+B*a)/x^5-1/3*b*(A*b+2*B*a)/x^3-b^2*B/x

________________________________________________________________________________________

Rubi [A]
time = 0.02, antiderivative size = 53, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.050, Rules used = {459} \begin {gather*} -\frac {a^2 A}{7 x^7}-\frac {a (a B+2 A b)}{5 x^5}-\frac {b (2 a B+A b)}{3 x^3}-\frac {b^2 B}{x} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a + b*x^2)^2*(A + B*x^2))/x^8,x]

[Out]

-1/7*(a^2*A)/x^7 - (a*(2*A*b + a*B))/(5*x^5) - (b*(A*b + 2*a*B))/(3*x^3) - (b^2*B)/x

Rule 459

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_.)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Int[ExpandI
ntegrand[(e*x)^m*(a + b*x^n)^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, e, m, n}, x] && NeQ[b*c - a*d, 0] &
& IGtQ[p, 0] && IGtQ[q, 0]

Rubi steps

\begin {align*} \int \frac {\left (a+b x^2\right )^2 \left (A+B x^2\right )}{x^8} \, dx &=\int \left (\frac {a^2 A}{x^8}+\frac {a (2 A b+a B)}{x^6}+\frac {b (A b+2 a B)}{x^4}+\frac {b^2 B}{x^2}\right ) \, dx\\ &=-\frac {a^2 A}{7 x^7}-\frac {a (2 A b+a B)}{5 x^5}-\frac {b (A b+2 a B)}{3 x^3}-\frac {b^2 B}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.01, size = 56, normalized size = 1.06 \begin {gather*} -\frac {35 b^2 x^4 \left (A+3 B x^2\right )+14 a b x^2 \left (3 A+5 B x^2\right )+3 a^2 \left (5 A+7 B x^2\right )}{105 x^7} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a + b*x^2)^2*(A + B*x^2))/x^8,x]

[Out]

-1/105*(35*b^2*x^4*(A + 3*B*x^2) + 14*a*b*x^2*(3*A + 5*B*x^2) + 3*a^2*(5*A + 7*B*x^2))/x^7

________________________________________________________________________________________

Maple [A]
time = 0.06, size = 48, normalized size = 0.91

method result size
default \(-\frac {a^{2} A}{7 x^{7}}-\frac {a \left (2 A b +B a \right )}{5 x^{5}}-\frac {b \left (A b +2 B a \right )}{3 x^{3}}-\frac {b^{2} B}{x}\) \(48\)
norman \(\frac {-b^{2} B \,x^{6}+\left (-\frac {1}{3} b^{2} A -\frac {2}{3} a b B \right ) x^{4}+\left (-\frac {2}{5} a b A -\frac {1}{5} a^{2} B \right ) x^{2}-\frac {a^{2} A}{7}}{x^{7}}\) \(53\)
risch \(\frac {-b^{2} B \,x^{6}+\left (-\frac {1}{3} b^{2} A -\frac {2}{3} a b B \right ) x^{4}+\left (-\frac {2}{5} a b A -\frac {1}{5} a^{2} B \right ) x^{2}-\frac {a^{2} A}{7}}{x^{7}}\) \(53\)
gosper \(-\frac {105 b^{2} B \,x^{6}+35 A \,b^{2} x^{4}+70 B a b \,x^{4}+42 a A b \,x^{2}+21 B \,a^{2} x^{2}+15 a^{2} A}{105 x^{7}}\) \(56\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((b*x^2+a)^2*(B*x^2+A)/x^8,x,method=_RETURNVERBOSE)

[Out]

-1/7*a^2*A/x^7-1/5*a*(2*A*b+B*a)/x^5-1/3*b*(A*b+2*B*a)/x^3-b^2*B/x

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 53, normalized size = 1.00 \begin {gather*} -\frac {105 \, B b^{2} x^{6} + 35 \, {\left (2 \, B a b + A b^{2}\right )} x^{4} + 15 \, A a^{2} + 21 \, {\left (B a^{2} + 2 \, A a b\right )} x^{2}}{105 \, x^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^2*(B*x^2+A)/x^8,x, algorithm="maxima")

[Out]

-1/105*(105*B*b^2*x^6 + 35*(2*B*a*b + A*b^2)*x^4 + 15*A*a^2 + 21*(B*a^2 + 2*A*a*b)*x^2)/x^7

________________________________________________________________________________________

Fricas [A]
time = 0.72, size = 53, normalized size = 1.00 \begin {gather*} -\frac {105 \, B b^{2} x^{6} + 35 \, {\left (2 \, B a b + A b^{2}\right )} x^{4} + 15 \, A a^{2} + 21 \, {\left (B a^{2} + 2 \, A a b\right )} x^{2}}{105 \, x^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^2*(B*x^2+A)/x^8,x, algorithm="fricas")

[Out]

-1/105*(105*B*b^2*x^6 + 35*(2*B*a*b + A*b^2)*x^4 + 15*A*a^2 + 21*(B*a^2 + 2*A*a*b)*x^2)/x^7

________________________________________________________________________________________

Sympy [A]
time = 0.57, size = 58, normalized size = 1.09 \begin {gather*} \frac {- 15 A a^{2} - 105 B b^{2} x^{6} + x^{4} \left (- 35 A b^{2} - 70 B a b\right ) + x^{2} \left (- 42 A a b - 21 B a^{2}\right )}{105 x^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x**2+a)**2*(B*x**2+A)/x**8,x)

[Out]

(-15*A*a**2 - 105*B*b**2*x**6 + x**4*(-35*A*b**2 - 70*B*a*b) + x**2*(-42*A*a*b - 21*B*a**2))/(105*x**7)

________________________________________________________________________________________

Giac [A]
time = 1.21, size = 55, normalized size = 1.04 \begin {gather*} -\frac {105 \, B b^{2} x^{6} + 70 \, B a b x^{4} + 35 \, A b^{2} x^{4} + 21 \, B a^{2} x^{2} + 42 \, A a b x^{2} + 15 \, A a^{2}}{105 \, x^{7}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x^2+a)^2*(B*x^2+A)/x^8,x, algorithm="giac")

[Out]

-1/105*(105*B*b^2*x^6 + 70*B*a*b*x^4 + 35*A*b^2*x^4 + 21*B*a^2*x^2 + 42*A*a*b*x^2 + 15*A*a^2)/x^7

________________________________________________________________________________________

Mupad [B]
time = 0.02, size = 52, normalized size = 0.98 \begin {gather*} -\frac {x^2\,\left (\frac {B\,a^2}{5}+\frac {2\,A\,b\,a}{5}\right )+x^4\,\left (\frac {A\,b^2}{3}+\frac {2\,B\,a\,b}{3}\right )+\frac {A\,a^2}{7}+B\,b^2\,x^6}{x^7} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((A + B*x^2)*(a + b*x^2)^2)/x^8,x)

[Out]

-(x^2*((B*a^2)/5 + (2*A*a*b)/5) + x^4*((A*b^2)/3 + (2*B*a*b)/3) + (A*a^2)/7 + B*b^2*x^6)/x^7

________________________________________________________________________________________